package com.learn.demo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

import java.sql.Timestamp;

@Data
@TableName("message")
@Builder
public class Message {
    @TableId(type = IdType.AUTO)
    private String id;
    @TableField("username")
    private String username;
    @TableField("content")
    private String text;
    @TableField("time")
    private Timestamp time;
}
